Person: Test AG from 1010: Create
Legal Person As Partner| name | value |
|---|---|
| partnerPersonTradeName | Test AG |
| operationsContactFamilyName | Krause |
| operationsContactGivenName | Dennis |
| operationsContactPhoneNumber | +49 9932 587741 |
| operationsContactEMailAddress | dennis.krause@example.org |
HTTP GET "/api/hs/office/persons?name=Test+AG" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "3029ef4b-ab91-429d-855b-26a8bedcef6e", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
} ]
In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.
HTTP POST "/api/hs/office/persons" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"personType" : "NATURAL_PERSON",
"familyName" : "Krause",
"givenName" : "Dennis"
}
EOF
=> status: 201 CREATED a2c84f0a-1d12-481f-86bd-e4eb4059cb5d
Please check first if that person already exists, if so, use it’s UUID below.
HINT: operations contacts are always connected to a partner-person, thus a person which is a holder of a partner-relation.
HTTP POST "/api/hs/office/contacts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"caption" : "Dennis Krause",
"phoneNumbers" : {
"main" : "+49 9932 587741"
},
"emailAddresses" : {
"main" : "dennis.krause@example.org"
}
}
EOF
=> status: 201 CREATED 287773fb-2be4-4e46-8f93-4f130d07bdc8
Please check first if that contact already exists, if so, use it’s UUID below.
HTTP POST "/api/hs/office/relations" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"type" : "OPERATIONS",
"anchor.uuid" : "3029ef4b-ab91-429d-855b-26a8bedcef6e", // Person: Test AG
"holder.uuid" : "a2c84f0a-1d12-481f-86bd-e4eb4059cb5d", // Person: Dennis Krause
"contact.uuid" : "287773fb-2be4-4e46-8f93-4f130d07bdc8" // Contact: Dennis Krause
}
EOF
=> status: 201 CREATED 3cfff14c-e141-4fa3-83e1-1608965b9ef2
HTTP GET "/api/hs/office/relations?relationType=OPERATIONS&personData=Krause" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "3cfff14c-e141-4fa3-83e1-1608965b9ef2",
"anchor" : {
"uuid" : "3029ef4b-ab91-429d-855b-26a8bedcef6e", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "a2c84f0a-1d12-481f-86bd-e4eb4059cb5d", // Person: Dennis Krause
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Dennis",
"familyName" : "Krause"
},
"type" : "OPERATIONS",
"mark" : null,
"contact" : {
"uuid" : "287773fb-2be4-4e46-8f93-4f130d07bdc8", // Contact: Dennis Krause
"caption" : "Dennis Krause",
"postalAddress" : { },
"emailAddresses" : {
"main" : "dennis.krause@example.org"
},
"phoneNumbers" : {
"main" : "+49 9932 587741"
}
}
} ]
generated on 2026-08-10 03:08:28 for branch HEAD